﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class STaskRoutineTaskSyncInfo extends IMessageBase
    {
        public var taskCode:int;
        public var star:int;
        public var color:int;
        public var beingHelp:int;
        public var help:int;
        public const _type:int = 16015;
        public static var _regist:STaskRoutineTaskSyncInfo = new STaskRoutineTaskSyncInfo(true);

        public function STaskRoutineTaskSyncInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STaskRoutineTaskSyncInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.taskCode);
            param1.writeInt(this.star);
            param1.writeInt(this.color);
            param1.writeInt(this.beingHelp);
            param1.writeInt(this.help);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.taskCode = param1.readInt();
            this.star = param1.readInt();
            this.color = param1.readInt();
            this.beingHelp = param1.readInt();
            this.help = param1.readInt();
            return;
        }// end function

    }
}
